using System;
using System.Collections;
namespace BMC.ARSystem
{
	internal class ArrayListDataLoader : DataLoader
	{
		private ArrayList _dataLines;
		public ArrayList Data
		{
			get
			{
				return this._dataLines;
			}
		}
		public ArrayListDataLoader(string dataFileName) : base(dataFileName)
		{
			base._beginLoadingEH += new BeginLoadingEventHandler(this.OnBeginLoading);
			base._loadDataLineEventEH += new LoadDataLineEventHandler(this.OnLoadDataLine);
			base._afterLoadedEH += new AfterLoadedEventHandler(this.OnAfterLoaded);
			base.Load();
		}
		internal void OnBeginLoading(object sender, BeginLoadingEventArgs e)
		{
			ArrayListDataLoader arrayListDataLoader = (ArrayListDataLoader)sender;
			arrayListDataLoader._dataLines = new ArrayList();
		}
		internal void OnLoadDataLine(object sender, LoadDataLineEventArgs e)
		{
			ArrayListDataLoader arrayListDataLoader = (ArrayListDataLoader)sender;
			arrayListDataLoader._dataLines.Add(e.DataLine);
		}
		internal void OnAfterLoaded(object sender, AfterLoadedEventArgs e)
		{
			ArrayListDataLoader arrayListDataLoader = (ArrayListDataLoader)sender;
			arrayListDataLoader._dataLines.Sort();
		}
	}
}
